<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width: 200px;
            height: 200px;
            background-color: blanchedalmond;
            /* float: left; */
            /* 使盒子在左边 */
/*float可使元素浮动起来，从文档中脱离出来、
且盒子模型不再需要满足水平布局的等式*/
        }
        .box2{
            width: 200px;
            height:200px;
            background-color:aqua;
            float: left;
            /* 使盒子在右边 */
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
</body>
</html>